<script type="text/javascript">
$(document).ready(function(){ 
	$("#abconf").change(function(){
		var conf = $("#abconf").val();
		if (conf==1){
			$("#replaceText").css('display','inline');
		}else{
			$("#replaceText").css('display','none');
		}
	});
});
</script>
<table class="widefat"> 
		<thead> 
			<tr> 
				<th width="20%">网站名称</th>
				<th width="30%">feed地址</th>
				<th width="20%">过滤选项0-4</th>
				<th width="10%">开启评论</th>
				<th width="10%">AutoUrl</th>
			  	<th width="10%">删除</th>
			</tr> 
		</thead> 
		<tbody> 
            
		{% for l in list %}
		<tr valign="middle" id="link-1">
			<td>{{l.name}}</td>
			<td>{{l.feedurl}}</td>
		  	<td>{{l.abconf}}<span style="padding-left:10px;"></span>{% if l.repReg %}<span style="color:#FF8566;">{{l.repReg}}</span>{% endif %}</td>
		  	<td>{{l.allow_comment}}</td>
			<td>{{l.autoUrl}}</td>
			<td><a href="?delid={{l.name}}">删除</a></td>
		</tr> 
		{% endfor %}
		<tr valign="middle" id="link-1">
			<form action="" method="post">
				<td><input type="text" value="填写网站名称" name="name" /></td>
				<td><input type="text" value="填写feed地址" name="feedurl" /></td>
			    <td>
				    <select name="abconf" id="abconf">
		              <option value="0">不过滤标签</option>
		              <option value="1">替换文字</option>
		              <option value="2">过滤图片</option>
					  <option value="3">过滤链接</option>
					  <option value="4">过滤文字图片</option>
		            </select>
					<input id="replaceText" type="text" value="" name="repReg" style="display:none;"/>
				</td>
				<td><input type="checkbox" name="allowComment"/></td>
				<td><input type="checkbox" name="autoUrl"/></td>
		    	<td><input type="submit" value="添加"></td>
			</form>
		</tr>
	</tbody> 
</table> 
<p>
	*基于autoblog修改 
	<ul><li>增加对gb2312编码RSS的处理</li><li>自动slug构建</li><li>替换文本代理过滤链接</li></ul>
</p>
<p>
	*文件替换表达式 <span style="color:#FF8566;">value:replecValue,value:replecValue,.....</span>
	<div>e.g: www.baidu.com:xxx博客:aaa博客</div>
</p>
 